package cn.cloudreal.cbms.budget.service.impl;

import java.util.List;

import org.apache.log4j.Logger;

import cn.cloudreal.cbms.budget.dao.BudgetListDao;
import cn.cloudreal.cbms.budget.service.BudgetListService;
import cn.cloudreal.cbms.common.util.PageBean;
import cn.cloudreal.cbms.vo.CostSubTypeBudget;
import cn.cloudreal.cbms.vo.FundBudget;
import cn.cloudreal.cbms.vo.SourcePlanYear2;

/**
 * <p>
 * Title: CBM
 * </p>
 * <p>
 * Description:预算列表Service层实现类
 * </p>
 * <p>
 * Copyright: Copyright (c) 2012
 * </p>
 * <p>
 * Company:云恒瑞通
 * </p>
 * 
 * @author WangTao
 * @date 2012-07-19
 */
public class BudgetListServiceImpl implements BudgetListService
{
    /** 日志工具类实例 */
    private static final Logger log = Logger.getLogger(BudgetListServiceImpl.class);

    /** 服务 */
    BudgetListDao budgetListDao;

    public void setBudgetListDao(BudgetListDao budgetListDao)
    {
        this.budgetListDao = budgetListDao;
    }

    public CostSubTypeBudget getSubTypeBudget(FundBudget fundBudget, String flag)
    {
        // TODO Auto-generated method stub
        return budgetListDao.getSubTypeBudget(fundBudget, flag);
    }

    public List<String> getYearsByCity(String city)
    {
        // TODO Auto-generated method stub
        return budgetListDao.getYearsByCity(city);
    }

    public boolean modifyBudget(FundBudget fbParam)
    {
        // TODO Auto-generated method stub
        return budgetListDao.modifyBudget(fbParam);
    }

    public int getMediaBudgetCount(SourcePlanYear2 sourcePlanYear)
    {
        // TODO Auto-generated method stub
        return budgetListDao.getMediaBudgetCount(sourcePlanYear);
    }

    public List<SourcePlanYear2> getMediaBudgetList(SourcePlanYear2 sourcePlanYear,
            PageBean page)
    {
        // TODO Auto-generated method stub
        return budgetListDao.getMediaBudgetList(sourcePlanYear, page);
    }

    public boolean deleteBudget(SourcePlanYear2 sourcePlanYear,
            String flag)
    {
        // TODO Auto-generated method stub
        return budgetListDao.deleteBudget(sourcePlanYear, flag);
    }

}
